package cn.org.donald.framework.pojo.dto;

import cn.org.donald.framework.pojo.BaseModel;
import cn.org.donald.pojo.entity.Role;
import cn.org.donald.pojo.entity.RolePermission;

import java.util.List;

/**
 * @author ： Donald
 * @date ： 2020/10/19 00:45
 * @description：
 */
public class LoginUser extends BaseModel {

    private Long userId;

    private String userName;

    private String password;

    private List<Role> roleList;

    private List<RolePermission> rolePermissionList;

    public LoginUser() {
    }

    public LoginUser(Long userId, String userName, String password, List<Role> roleList, List<RolePermission> rolePermissionList) {
        this.userId = userId;
        this.userName = userName;
        this.password = password;
        this.roleList = roleList;
        this.rolePermissionList = rolePermissionList;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public List<Role> getRoleList() {
        return roleList;
    }

    public void setRoleList(List<Role> roleList) {
        this.roleList = roleList;
    }

    public List<RolePermission> getRolePermissionList() {
        return rolePermissionList;
    }

    public void setRolePermissionList(List<RolePermission> rolePermissionList) {
        this.rolePermissionList = rolePermissionList;
    }
}
